 /* ==========================================================================
       DESIGN TOKENS & RESET
       ========================================================================== */
    :root {
      --blue-primary: #1565c0;
      --blue-secondary: #0d47a1;
      --blue-accent: #1e88e5;
      --blue-light: #e3f2fd;
      --blue-dark-bg: #0a192f;
      --card-bg: rgba(13, 37, 72, 0.95);

      --white: #ffffff;
      --text-main: #f0f4f8;
      --text-muted: #94a3b8;
      --text-subtle: #64748b;

      --font-heading: 'Outfit', sans-serif;
      --font-body: 'Plus Jakarta Sans', sans-serif;
      --font-mono: 'Fira Code', monospace;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      background-color: var(--blue-dark-bg);
      color: var(--text-main);
      font-family: var(--font-body);
      font-size: 16px;
      line-height: 1.6;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      overflow-x: hidden;
      padding-top: 110px; /* Space for fixed banner + nav */
    }

    /* ==========================================================================
       TOP RUNNING BANNER
       ========================================================================== */
    .top-banner {
      width: 100%;
      height: 35px;
      background: linear-gradient(90deg, var(--blue-secondary), var(--blue-accent));
      color: var(--white);
      font-size: 0.88rem;
      font-weight: 600;
      position: fixed;
      top: 0;
      left: 0;
      z-index: 2000;
      display: flex;
      align-items: center;
      overflow: hidden;
    }

    .top-banner span {
      display: inline-block;
      white-space: nowrap;
      padding-left: 100%;
      animation: scrollBanner 24s linear infinite;
    }

    @keyframes scrollBanner {
      0% { transform: translateX(0); }
      100% { transform: translateX(-100%); }
    }

    /* ==========================================================================
       NAVBAR
       ========================================================================== */
    .top-navbar {
      width: 100%;
      position: fixed;
      top: 35px;
      left: 0;
      padding: 10px 24px;
      background: rgba(10, 25, 47, 0.92);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border-bottom: 1px solid rgba(30, 136, 229, 0.35);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      transition: all 0.3s ease;
      z-index: 1500;
    }

    .top-navbar.scrolled {
      background: rgba(8, 20, 38, 0.98);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
      padding: 8px 24px;
    }

    /* Logo & Branding */
    .top-logo {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-shrink: 0;
    }

    .top-logo img {
      display: block;
      object-fit: contain;
      background: rgba(255, 255, 255, 0.05);
    }

    .top-logo.left img {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      border: 1.5px solid var(--blue-accent);
    }

    .top-logo.right img {
      width: 40px;
      height: 40px;
      border-radius: 6px;
      border: 1.5px solid var(--blue-accent);
    }

    .brand-text-group {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 2px;
      line-height: 1.2;
    }

    .brand-name {
      font-family: var(--font-heading);
      font-size: 1.15rem;
      font-weight: 700;
      letter-spacing: 0.3px;
      color: var(--white);
      white-space: nowrap;
      text-shadow: 0 2px 6px rgba(30, 136, 229, 0.4);
    }

    .brand-subtitle {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .badge-grade {
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 1px;
      color: #64b5f6;
      background: rgba(30, 136, 229, 0.15);
      border: 1px solid rgba(100, 181, 246, 0.3);
      padding: 1px 6px;
      border-radius: 4px;
      text-transform: uppercase;
    }

    .sub-dot {
      font-size: 0.6rem;
      color: var(--text-muted);
      opacity: 0.6;
    }

    .badge-subject {
      font-size: 0.65rem;
      font-weight: 600;
      letter-spacing: 1.2px;
      color: var(--text-muted);
      text-transform: uppercase;
    }

    /* Links */
    .top-links {
      list-style: none;
      display: flex;
      align-items: center;
      gap: 18px;
    }

    .top-links a {
      color: var(--text-main);
      text-decoration: none;
      font-size: 0.92rem;
      font-weight: 600;
      padding: 6px 2px;
      position: relative;
      transition: color 0.25s ease;
    }

    .top-links a::after {
      content: "";
      position: absolute;
      bottom: -2px;
      left: 0;
      width: 0%;
      height: 2.5px;
      background: var(--blue-accent);
      transition: width 0.25s ease;
    }

    .top-links a:hover,
    .top-links a.active {
      color: var(--blue-light);
    }

    .top-links a:hover::after,
    .top-links a.active::after {
      width: 100%;
    }

    /* Header Right Actions */
    .top-right-group {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-shrink: 0;
    }

    .nav-exit-btn {
      background: linear-gradient(135deg, #d32f2f, #b71c1c);
      color: var(--white);
      border: none;
      border-radius: 6px;
      padding: 6px 14px;
      font-size: 0.88rem;
      font-family: var(--font-body);
      font-weight: 600;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .nav-exit-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 3px 10px rgba(211, 47, 47, 0.4);
    }

    /* Mobile Hamburger */
    .nav-toggle {
      display: none;
      flex-direction: column;
      justify-content: space-between;
      width: 26px;
      height: 20px;
      background: transparent;
      border: none;
      cursor: pointer;
      padding: 0;
      z-index: 1600;
    }

    .nav-toggle span {
      display: block;
      height: 2.5px;
      width: 100%;
      background: var(--white);
      border-radius: 3px;
      transition: all 0.3s ease;
    }

    .nav-toggle.open span:nth-child(1) {
      transform: translateY(8.5px) rotate(45deg);
    }
    .nav-toggle.open span:nth-child(2) {
      opacity: 0;
    }
    .nav-toggle.open span:nth-child(3) {
      transform: translateY(-8.5px) rotate(-45deg);
    }

    /* ==========================================================================
       EXIT CONFIRMATION MODAL
       ========================================================================== */
    .exit-modal-overlay {
      position: fixed;
      inset: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(5, 12, 26, 0.75);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .exit-modal-overlay.active {
      opacity: 1;
      visibility: visible;
    }

    .exit-modal-card {
      width: 90%;
      max-width: 380px;
      background: var(--card-bg);
      border: 1px solid rgba(41, 121, 255, 0.35);
      border-radius: 14px;
      padding: 24px 20px;
      text-align: center;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(41, 121, 255, 0.2);
      transform: scale(0.92);
      transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .exit-modal-overlay.active .exit-modal-card {
      transform: scale(1);
    }

    .exit-modal-icon {
      font-size: 2.2rem;
      margin-bottom: 8px;
    }

    .exit-modal-title {
      font-family: var(--font-heading);
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--white);
      margin-bottom: 8px;
    }

    .exit-modal-desc {
      font-size: 0.92rem;
      color: var(--text-muted);
      line-height: 1.5;
      margin-bottom: 22px;
    }

    .exit-modal-actions {
      display: flex;
      gap: 12px;
      justify-content: center;
    }

    .btn-modal-cancel,
    .btn-modal-confirm {
      flex: 1;
      font-family: var(--font-body);
      font-size: 0.9rem;
      font-weight: 600;
      padding: 9px 16px;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .btn-modal-cancel {
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: var(--text-main);
    }

    .btn-modal-cancel:hover {
      background: rgba(255, 255, 255, 0.16);
      color: var(--white);
    }

    .btn-modal-confirm {
      background: linear-gradient(135deg, #dc2626, #b91c1c);
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: var(--white);
      box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
    }

    .btn-modal-confirm:hover {
      background: linear-gradient(135deg, #ef4444, #dc2626);
      transform: translateY(-1px);
      box-shadow: 0 6px 16px rgba(220, 38, 38, 0.45);
    }

    /* ==========================================================================
       SITE FOOTER
       ========================================================================== */
    .site-footer {
      position: relative;
      width: 100%;
      background: linear-gradient(180deg, rgba(8, 20, 38, 0.85) 0%, #060e1d 100%);
      border-top: 1px solid rgba(41, 121, 255, 0.25);
      color: var(--text-muted);
      margin-top: auto;
      overflow: hidden;
    }

    .footer-glow-bar {
      position: absolute;
      top: -1px;
      left: 10%;
      width: 80%;
      height: 2px;
      background: linear-gradient(90deg, transparent, #2979ff, #60a5fa, transparent);
      box-shadow: 0 0 15px rgba(41, 121, 255, 0.6);
    }

    .footer-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 50px 24px 35px 24px;
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 40px;
    }

    .footer-heading {
      font-family: var(--font-heading);
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--white);
      margin-bottom: 18px;
      position: relative;
      display: inline-block;
    }

    .footer-heading::after {
      content: "";
      position: absolute;
      bottom: -4px;
      left: 0;
      width: 24px;
      height: 2px;
      background: var(--blue-accent);
      border-radius: 2px;
    }

    .footer-logo-row {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 14px;
    }

    .footer-seal {
      width: 44px;
      height: 44px;
      object-fit: contain;
      border-radius: 50%;
      border: 1.5px solid var(--blue-accent);
    }

    .footer-brand-title {
      display: block;
      font-family: var(--font-heading);
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--white);
      line-height: 1.2;
      margin-bottom: 3px;
    }

    .footer-tags {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .footer-desc {
      font-size: 0.88rem;
      line-height: 1.55;
      color: var(--text-muted);
      margin-bottom: 16px;
      max-width: 540px;
    }

    .footer-formula-pill {
      display: inline-flex;
      align-items: center;
      background: rgba(41, 121, 255, 0.08);
      border: 1px solid rgba(41, 121, 255, 0.3);
      padding: 6px 14px;
      border-radius: 8px;
      box-shadow: inset 0 0 10px rgba(41, 121, 255, 0.05);
    }

    .footer-formula-pill code {
      font-family: var(--font-mono);
      font-size: 0.82rem;
      color: #93c5fd;
    }

    .footer-specs-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-bottom: 16px;
    }

    .spec-item {
      display: flex;
      flex-direction: column;
      font-size: 0.85rem;
    }

    .spec-label {
      font-size: 0.75rem;
      color: var(--text-subtle);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      font-weight: 600;
    }

    .spec-val {
      color: var(--text-main);
      font-weight: 500;
    }

    .footer-partner-logo {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.1);
      padding: 6px 12px;
      border-radius: 8px;
      width: fit-content;
    }

    .footer-partner-logo img {
      width: 28px;
      height: 28px;
      object-fit: contain;
      border-radius: 4px;
    }

    .footer-partner-logo span {
      font-size: 0.8rem;
      font-weight: 600;
      color: #cbd5e1;
    }

    /* Footer Bottom Bar */
    .footer-bottom {
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      background: rgba(4, 10, 20, 0.95);
      padding: 18px 24px;
    }

    .footer-bottom-inner {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
    }

    .copyright-text {
      font-size: 0.82rem;
      color: var(--text-subtle);
    }

    .copyright-text strong {
      color: var(--text-muted);
    }

    .back-to-top {
      color: #60a5fa;
      font-size: 0.82rem;
      font-weight: 600;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 5px 12px;
      border-radius: 6px;
      background: rgba(41, 121, 255, 0.1);
      border: 1px solid rgba(41, 121, 255, 0.25);
      transition: all 0.2s ease;
    }

    .back-to-top:hover {
      background: rgba(41, 121, 255, 0.2);
      color: var(--white);
      transform: translateY(-2px);
    }

    /* ==========================================================================
       MEDIA QUERIES & RESPONSIVENESS
       ========================================================================== */
    @media screen and (max-width: 992px) {
      .nav-toggle {
        display: flex;
      }

      .nav-container {
        position: fixed;
        top: 75px;
        right: -100%;
        width: 260px;
        height: calc(100vh - 75px);
        background: rgba(10, 25, 47, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-left: 1px solid rgba(30, 136, 229, 0.3);
        padding: 30px 20px;
        transition: right 0.3s ease;
        box-shadow: -6px 0 20px rgba(0, 0, 0, 0.5);
      }

      .nav-container.open {
        right: 0;
      }

      .top-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
      }

      .top-links a {
        font-size: 1.05rem;
        display: block;
        width: 100%;
      }

      .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
      }
    }

    @media screen and (max-width: 600px) {
      body {
        padding-top: 100px;
      }

      .top-navbar {
        padding: 8px 14px;
      }

      .brand-name {
        font-size: 0.92rem;
      }

      .badge-grade,
      .badge-subject {
        font-size: 0.58rem;
        letter-spacing: 0.8px;
      }

      .top-logo.left img,
      .top-logo.right img {
        width: 34px;
        height: 34px;
      }

      .nav-exit-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
      }

      .footer-container {
        padding: 36px 16px 24px 16px;
      }

      .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
      }

      .footer-formula-pill {
        width: 100%;
        justify-content: center;
      }
    }:root{--bg:#eef9f6;--card:#fff;--ink:#0d2b33;--muted:#4a6a72;--green:#0b9a6d;--blue:#1c6fc4;--line:#cfe7e2;--soft:#e6f6f1;
box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--bg:#08191d;--card:#0f262c;--ink:#e3f4f0;--muted:#98b9bd;--green:#34d399;--blue:#60a5fa;--line:#1d3d44;--soft:#123239;color-scheme:dark}}
:root[data-theme="dark"]{--bg:#08191d;--card:#0f262c;--ink:#e3f4f0;--muted:#98b9bd;--green:#34d399;--blue:#60a5fa;--line:#1d3d44;--soft:#123239;color-scheme:dark}
*{box-sizing:border-box}
html{scroll-padding-top:env(safe-area-inset-top,0px)}
html,body{margin:0;width:100%}
body{background:var(--bg);color:var(--ink);font:17px/1.7 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
header{width:100%;background:linear-gradient(120deg,#0b9a6d,#1c6fc4);color:#fff;padding:44px clamp(16px,4vw,56px)}
header small{letter-spacing:.16em;text-transform:uppercase;opacity:.85;font-weight:600;font-size:12px}
h1{margin:6px 0 8px;font-size:clamp(28px,5vw,52px);line-height:1.1;font-weight:800}
header p{margin:0;opacity:.92;font-size:18px}
.react{display:flex;gap:12px;align-items:center;margin-top:20px;flex-wrap:wrap;font-weight:700}
.pill{background:rgba(255,255,255,.2);border:1px solid rgba(255,255,255,.4);border-radius:99px;padding:8px 16px;cursor:pointer;color:#fff;font:inherit}
.pill:hover{background:rgba(255,255,255,.35)}
main{width:100%;padding:24px clamp(16px,4vw,56px) 56px;display:grid;gap:22px}
.card{width:100%;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:24px clamp(16px,3vw,32px)}
.card p{margin:0 0 12px}.card p:last-child{margin:0}
h2{margin:0 0 12px;font-size:23px;color:var(--green);display:flex;justify-content:space-between;gap:10px;align-items:center}
.theme{background:none;border:1px solid var(--line);color:var(--ink);border-radius:8px;padding:4px 10px;cursor:pointer;font:14px system-ui}
.two{display:grid;grid-template-columns:1fr 1fr;gap:24px}
@media(max-width:800px){.two{grid-template-columns:1fr}}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px}
.ex{background:var(--soft);border:1px solid var(--line);border-radius:14px;padding:0;overflow:hidden;text-align:left;cursor:pointer;font:inherit;color:var(--ink);width:100%}
.ex svg{display:block;width:100%;height:150px}
.ex .b{padding:12px 14px}
.ex b{display:block;font-size:17px}
.ex span{display:none;margin-top:6px;font-size:14.5px;color:var(--muted);line-height:1.5}
.ex.open{border-color:var(--green)}.ex.open span{display:block}
ul.out{list-style:none;padding:0;margin:0}
ul.out li{display:flex;gap:12px;align-items:flex-start;padding:10px 0;border-bottom:1px solid var(--line);cursor:pointer}
ul.out li:last-child{border:0}
.box{flex:none;width:22px;height:22px;border:2px solid var(--blue);border-radius:6px;margin-top:3px;display:grid;place-items:center;color:#fff;font-weight:700;font-size:14px}
li.done .box{background:var(--blue)}li.done .box::after{content:"✓"}
li.done .t{color:var(--muted);text-decoration:line-through}
.bar{height:10px;background:var(--line);border-radius:99px;overflow:hidden;margin:6px 0 12px}
.bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--green),var(--blue));transition:width .3s}
.prog{font-weight:600;font-size:14px;color:var(--muted)}
/* ==========================================
   LESSON PLAN BUTTON
========================================== */

.lesson-plan-action {
  display: flex;
  justify-content: flex-start;
  margin-top: 22px;
}

.lesson-plan-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 22px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(120deg, #087f65, #176fc0);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(15, 116, 130, 0.2);
  transition: transform .25s ease, box-shadow .25s ease;
}

.lesson-plan-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 11px 24px rgba(15, 116, 130, 0.3);
}

.lesson-plan-btn > span:first-child {
  font-size: 21px;
}

.lesson-plan-btn .btn-arrow {
  font-size: 18px;
  transition: transform .25s ease;
}

.lesson-plan-btn:hover .btn-arrow {
  transform: translate(3px, -3px);
}


/* ==========================================
   BLURRED BACKGROUND OVERLAY
========================================== */

.lesson-plan-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;
  background: rgba(5, 24, 31, 0.55);

  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity .3s ease, visibility .3s ease;
}

.lesson-plan-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


/* ==========================================
   LESSON PLAN MODAL BOX
========================================== */

.lesson-plan-modal {
  width: min(100%, 1050px);
  max-height: 88vh;
  overflow-y: auto;

  background: var(--card, #fff);
  color: var(--ink, #0d2b33);

  border: 1px solid var(--line, #cfe7e2);
  border-radius: 20px;

  box-shadow: 0 25px 80px rgba(0, 0, 0, .3);

  transform: translateY(25px) scale(.97);
  transition: transform .3s ease;
}

.lesson-plan-overlay.active .lesson-plan-modal {
  transform: translateY(0) scale(1);
}


/* ==========================================
   MODAL HEADER
========================================== */

.lesson-plan-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;

  padding: 28px 32px;

  color: #fff;
  background: linear-gradient(120deg, #087f65, #176fc0);
}

.lesson-plan-label {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  opacity: .8;
}

.lesson-plan-header h2 {
  margin: 7px 0 3px;
  color: #fff;
  font-size: clamp(25px, 4vw, 34px);
}

.lesson-plan-header p {
  margin: 0;
  color: rgba(255,255,255,.85);
  font-size: 15px;
}

.lesson-plan-close {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;

  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;

  background: rgba(255,255,255,.15);
  color: #fff;

  font-size: 28px;
  line-height: 1;
  cursor: pointer;

  transition: background .2s ease, transform .2s ease;
}

.lesson-plan-close:hover {
  background: rgba(255,255,255,.3);
  transform: rotate(90deg);
}


/* ==========================================
   LESSON INFORMATION
========================================== */

.lesson-plan-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;

  padding: 22px 30px;
  background: var(--soft, #e6f6f1);
  border-bottom: 1px solid var(--line, #cfe7e2);
}

.plan-info-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.plan-info-item span {
  color: var(--muted, #4a6a72);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.plan-info-item strong {
  font-size: 14px;
  color: var(--ink, #0d2b33);
}


/* ==========================================
   LESSON PLAN TABLE
========================================== */

.lesson-plan-table-wrap {
  width: 100%;
  overflow-x: auto;
  padding: 25px 30px;
}

.lesson-plan-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.lesson-plan-table th {
  padding: 15px 13px;
  color: #fff;
  background: #087f65;
  font-weight: 700;
  white-space: nowrap;
}

.lesson-plan-table th:first-child {
  border-radius: 8px 0 0 0;
}

.lesson-plan-table th:last-child {
  border-radius: 0 8px 0 0;
}

.lesson-plan-table td {
  padding: 16px 13px;
  border-bottom: 1px solid var(--line, #cfe7e2);
  color: var(--ink, #0d2b33);
  vertical-align: top;
  line-height: 1.6;
}

.lesson-plan-table tbody tr:nth-child(even) {
  background: var(--soft, #e6f6f1);
}

.lesson-plan-table tbody tr:hover {
  background: rgba(28, 111, 196, .09);
}

.lesson-plan-table td:first-child {
  color: #087f65;
  font-weight: 800;
}

.lesson-plan-table td strong {
  color: var(--blue, #1c6fc4);
}


/* ==========================================
   MODAL FOOTER
========================================== */

.lesson-plan-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;

  padding: 18px 30px;
  border-top: 1px solid var(--line, #cfe7e2);
  background: var(--soft, #e6f6f1);
}

.lesson-plan-footer > span {
  color: var(--muted, #4a6a72);
  font-size: 12px;
  font-weight: 600;
}

.lesson-plan-done {
  padding: 11px 20px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(120deg, #087f65, #176fc0);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease;
}

.lesson-plan-done:hover {
  transform: translateY(-2px);
}


/* ==========================================
   RESPONSIVE DESIGN
========================================== */

@media (max-width: 700px) {
  .lesson-plan-overlay {
    padding: 10px;
  }

  .lesson-plan-modal {
    max-height: 92vh;
    border-radius: 14px;
  }

  .lesson-plan-header {
    padding: 22px 18px;
  }

  .lesson-plan-info {
    grid-template-columns: repeat(2, 1fr);
    padding: 18px;
  }

  .lesson-plan-table-wrap {
    padding: 18px;
  }

  .lesson-plan-footer {
    padding: 16px 18px;
  }

  .lesson-plan-footer > span {
    width: 100%;
  }

  .lesson-plan-done {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lesson-plan-overlay,
  .lesson-plan-modal,
  .lesson-plan-btn,
  .lesson-plan-close {
    transition: none;
  }
}.chem-lesson-menu {
  --chem-blue: #176fc1;
  --chem-dark: #103b60;
  --chem-teal: #0a9fb0;
  --chem-text: #29465e;
  --chem-muted: #71869a;
  --chem-border: #dceaf4;

  width: 100%;
  padding: clamp(35px, 5vw, 68px) clamp(18px, 5vw, 75px);
  background:
    radial-gradient(circle at 5% 5%, #e1f3ff 0, transparent 32%),
    linear-gradient(145deg, #f7fbff, #eaf5fc);
  font-family: 'Inter', 'Noto Sans Myanmar', sans-serif;
  color: var(--chem-text);
  box-sizing: border-box;
}

.chem-lesson-menu *,
.chem-lesson-menu *::before,
.chem-lesson-menu *::after {
  box-sizing: border-box;
}

/* HEADING */

.chem-menu-heading {
  max-width: 850px;
  margin: 0 auto 38px;
  text-align: center;
}

.chem-menu-tag {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #c7e2f5;
  border-radius: 30px;
  background: #fff;
  color: var(--chem-blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.chem-menu-heading h2 {
  margin: 17px 0 12px;
  color: var(--chem-dark);
  font-family: 'Outfit', sans-serif;
  font-size: clamp(29px, 4vw, 43px);
  font-weight: 800;
  line-height: 1.2;
}

.chem-menu-heading p {
  max-width: 650px;
  margin: auto;
  color: var(--chem-muted);
  font-size: 15px;
  line-height: 1.9;
}

.chem-heading-line {
  width: 65px;
  height: 4px;
  margin: 22px auto 0;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--chem-blue), var(--chem-teal));
}

/* LESSON GRID */

.chem-lesson-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
  max-width: 1450px;
  margin: 0 auto;
}

/* LESSON CARD */

.chem-lesson-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 340px;
  padding: 25px;
  overflow: hidden;
  border: 1px solid var(--chem-border);
  border-radius: 17px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 10px 30px rgba(26, 91, 137, .07);
  transition:
    transform .3s ease,
    box-shadow .3s ease,
    border-color .3s ease;
}

.chem-lesson-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--chem-blue), var(--chem-teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}

.chem-lesson-card:hover {
  transform: translateY(-7px);
  border-color: #a9d5f1;
  box-shadow: 0 20px 40px rgba(26, 91, 137, .14);
}

.chem-lesson-card:hover::before {
  transform: scaleX(1);
}

/* CARD TOP */

.chem-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 58px;
  margin-bottom: 22px;
}

.chem-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 65px;
  height: 48px;
  border-radius: 10px;
  background: #e8f4fd;
  color: var(--chem-blue);
  font-family: 'Outfit', sans-serif;
  font-size: 19px;
  font-weight: 800;
}

.chem-card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(145deg, #e5f6ff, #d8f1f4);
  font-size: 25px;
}

.chem-card-label {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--chem-teal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.7px;
}

/* CARD TEXT */

.chem-card-content {
  flex: 1;
}

.chem-card-content h3 {
  margin: 0 0 7px;
  color: var(--chem-dark);
  font-family: 'Outfit', sans-serif;
  font-size: 23px;
  font-weight: 800;
}

.chem-card-content h4 {
  margin: 0 0 13px;
  color: var(--chem-blue);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.chem-card-content p {
  margin: 0 0 23px;
  color: var(--chem-muted);
  font-size: 13px;
  line-height: 1.9;
}

/* OPEN BUTTON */

.chem-open-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 45px;
  padding: 11px 16px;
  border: 1px solid #d4e8f7;
  border-radius: 9px;
  background: #f0f8fe;
  color: var(--chem-blue);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  transition: .25s ease;
}

.chem-open-btn span {
  font-size: 20px;
  transition: transform .25s ease;
}

.chem-open-btn:hover {
  border-color: var(--chem-blue);
  background: var(--chem-blue);
  color: #fff;
}

.chem-open-btn:hover span {
  transform: translateX(5px);
}

/* CURRENT LESSON */

.chem-lesson-card.active {
  border: 2px solid #62b7d6;
  background: linear-gradient(155deg, #ffffff, #effaff);
}

.chem-lesson-card.active::before {
  transform: scaleX(1);
}

.chem-current {
  padding: 6px 9px;
  border-radius: 20px;
  background: #e1f7ed;
  color: #07845e;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .5px;
}

/* FOOTER */

.chem-menu-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 900px;
  margin: 35px auto 0;
  padding: 17px 22px;
  border: 1px solid #d5eaf6;
  border-radius: 12px;
  background: rgba(255, 255, 255, .7);
}

.chem-footer-icon {
  font-size: 22px;
}

.chem-menu-footer p {
  margin: 0;
  color: var(--chem-muted);
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

/* MYANMAR FONT */

body.my-lang .chem-lesson-menu {
  font-family: 'Noto Sans Myanmar', sans-serif;
}

body.my-lang .chem-menu-heading h2,
body.my-lang .chem-menu-heading p,
body.my-lang .chem-card-content h3,
body.my-lang .chem-card-content h4,
body.my-lang .chem-card-content p,
body.my-lang .chem-open-btn,
body.my-lang .chem-menu-footer p {
  font-family: 'Noto Sans Myanmar', sans-serif;
  line-height: 2;
}

body.my-lang .chem-menu-heading h2 {
  font-size: clamp(24px, 3.5vw, 34px);
}

/* RESPONSIVE TABLET */

@media (max-width: 1050px) {
  .chem-lesson-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* RESPONSIVE MOBILE */

@media (max-width: 620px) {
  .chem-lesson-menu {
    padding: 35px 15px 45px;
  }

  .chem-lesson-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .chem-lesson-card {
    min-height: 0;
    padding: 22px;
  }

  .chem-menu-heading {
    margin-bottom: 28px;
  }

  .chem-menu-heading p {
    font-size: 13px;
  }

  .chem-card-content h3 {
    font-size: 21px;
  }

  .chem-menu-footer {
    padding: 14px;
  }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  .chem-lesson-card,
  .chem-lesson-card::before,
  .chem-open-btn,
  .chem-open-btn span {
    transition: none;
  }
}

body.my-lang {
  font-family: 'Noto Sans Myanmar', sans-serif;
  line-height: 2;
}

body.my-lang h1,
body.my-lang h2,
body.my-lang h3,
body.my-lang p,
body.my-lang .key,
body.my-lang .concl,
body.my-lang .fig figcaption,
body.my-lang .q,
body.my-lang details,
body.my-lang .chem-lesson-menu {
  font-family: 'Noto Sans Myanmar', sans-serif;
}

body.my-lang .hero h1 {
  line-height: 1.8;
}

body.my-lang .lesson p {
  line-height: 2.1;
}

body.my-lang .tbtn {
  font-family: 'Noto Sans Myanmar', sans-serif;
}

